package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 项目附件对象 t_project_file
 *
 * @author Mr.Wei
 * @date 2020-10-14
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_project_file")
public class ProjectFile implements Serializable {

    private static final long serialVersionUID = -8839240978346819944L;

    /**
     * 附件id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 项目id
     */
    @Excel(name = "项目id")
    @TableField("p_id")
    private Long pId;

    /**
     * 文件名称
     */
    @Excel(name = "文件名称")
    @TableField("file_name")
    private String fileName;

    /**
     * 文件路径
     */
    @Excel(name = "文件路径")
    @TableField("path")
    private String path;

    /**
     * 文件大小
     */
    @Excel(name = "文件大小")
    @TableField("file_size")
    private String fileSize;

    /**
     * 下载次数
     */
    @Excel(name = "下载次数")
    @TableField("number")
    private Integer number;

    /**
     * 创建者
     */
    @TableField("create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 备注
     */
    @Excel(name = "备注")
    @TableField("remark")
    private String remark;
}
